''' 通道的分离 '''
import cv2 as cv

img = cv.imread('../resources/miku.jpg')

mv = cv.split(img)
# print(type(mv[0]))
mv[0][::] = 255

cv.imshow('img', img)
# cv.imshow('img0', img[:,:,0])
# cv.imshow('img1', img[:,:,1])
# cv.imshow('img2', img[:,:,2])
cv.imshow('mv', cv.merge(mv))


cv.waitKey(0)
cv.destroyAllWindows()